.container{
    width: 1000px;
    margin: auto;
    background-color: rgb(232,248,221);
}

h1,ul,li{
    margin: 0;
    padding: 0;
}

li{
    list-style: none;
}

a{
    text-decoration: none;
}

/* 垂直菜单 */
.menu1{
    width: 200px;
    height: 160px;
    background-color: rgb(100, 155, 237);
}
.menu1 li{
    width: 200px;
    height: 39px;
    line-height: 39px;
    background-color: brown;
    border-bottom: 1px solid rgb(201, 152, 48);
}
.menu1 a{
    display: block;
    width: 170px;
    height: 39px;
    padding-left: 20px;
    color: white;
    border-left: 10px solid rgb(201, 152, 48) ;
}
.menu1 a:hover{
    background-color: #5e4606;
    border-left: 10px solid #eec494;
}





/* 水平菜单演示 */
.menu2{
    width: 1000px;
    height: 40px;
    background: transparent url(timg.jpg) repeat-x left top;
}
.menu2 li{
  float: left;
  width: 120px;
  height: 40px;
  line-height: 40px;
  text-align: center;
}

.menu2 a{
display: block;
color: rgb(89, 97, 211);
}

.menu2 :hover{
    color: #1c96ac;
    background-color: blue;
}
/* 水平菜单带垂直子菜单 */
.menu3{
    width: 1000px;
    height: 40px;
    background-color: #c6c6c6;
}

.menu3 li{
    float: left;
    width: 120px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.menu3 a{
display: block;
color: #ac146f;
height: 39px;
width: 120px;
/* border-right: 1px solid #ccc; */
border-bottom: 1px solid rgb(175, 172, 172);

}
.menu3 a :hover{
    background-color: #666;
    color: white;
    width: 120px;
    border-bottom: 1px solid red;
}

.menu3 .submenu{
    width: 120px;
   visibility: hidden;

}

.menu3 li :hover.submenu{
visibility: visible;
position: relative;
z-index: 100;
}


.menu3.submenu li{
    height: 35px;
    line-height: 35px;
}

.menu3.submenu a{
    background-color: #666;
    color: rgb(116, 199, 127);
    border: 0;

}

.menu3.submenu a :hover{
    background-color: #333;
}

/* 水平带水平子菜单 */
.menu4{
    width: 1000px;
    height: 40px;
    background-color: #5c2ddd;
    position: relative;
}


.menu4 li{
    float: left;
    width: 120px;
    height: 40px;
    line-height: 40px;
    text-align: center;
}

.menu4 a{
display: block;
color: #ac146f;
height: 39px;
width: 120px;
/* border-right: 1px solid #ccc; */
border-bottom: 1px solid #691e1e;
}

.menu4 a :hover{
    background-color: #2e1b86;
    color: #a37171;
    border-bottom: 1px solid red;
}
.menu4.submenu{
    height: 40px;
   display: none;
   position: absolute;
   left: 0;
   top: 40px;
   height: 100px;
   widows: 900px; 
   border: 1px solid #2e1b86;
   z-index: 100;

}

.menu4.submenu li{
    /* background-color:#2e1b86 ; */
    float: left;
}

.menu4 li :hover.submenu{
    display: block;
}

.menu4.submenu a{
    color: black;
    border: none;
}
.menu4.submenu a :hover{
    color: red;
    background-color: #fff;
}